﻿@model EdexApiClient.ITEM_COMPANY_MAP

<form name="ITEMS_MAPPING" class="form-horizontal" method="post"> 
    <fieldset> 
                
        <input type="hidden" name="MAP_ITEM_GUID" value="@Model.MAP_ITEM_GUID">
        <input type="hidden" name="ITEM_GUID" value="@Model.ITEM_GUID">
        <input type="hidden" name="COMPANY_GUID" value="@Model.COMPANY_GUID">

        <div class="control-group"> 
            <label class="control-label" for="COMPANY_NAME">Компания</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="COMPANY_NAME" value="@Model.COMPANY_NAME" readonly="readonly" />
            </div> 
        </div> 
                
        <div class="control-group"> 
            <label class="control-label" for="ITEM_NAME">Товар</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="ITEM_NAME" value="@Model.ITEM_NAME@(String.IsNullOrEmpty(Model.MAP_ARTICLE) ? String.Empty : String.Format(" ({0})", Model.MAP_ARTICLE))" readonly="readonly" />
            </div> 
        </div> 
                
        <div class="control-group"> 
            <label class="control-label" for="ITEM_NAME">Соответствие</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="ITEM_NAME" value="@(Model.MAP_ITEM_GUID.HasValue ? Model.MAP_ITEM_NAME : String.Empty)" />
            </div> 
        </div> 

    </fieldset>
</form>